package zlatan_demo08_set

import scala.collection.mutable.Set

object ClassDemo02 {

  def main(args: Array[String]): Unit = {

    val set1 = Set(1, 2, 3, 4)
    val set2 = set1 + 5
    val set3 = set2 ++ Set(6, 7, 8)
    val set4 = set3 - 1
    val set5 = set4 -- Set(3, 5, 7)


    println(s"set2:${set2}")
    println(s"set3:${set3}")
    println(s"set4:${set4}")
    println(s"set5:${set5}")


  }
}
